text: Be more selective when selecting on focus-in
authorMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jun 2020 19:49:39 +0000 (15:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jun 2020 19:49:39 +0000 (15:49 -0400)
commitcd9f5733b3e354301f29f1526744fec2da6fdfc8
tree8775b05962cd0b6fa3ed1aa70e558102e4444fc3
parent8b4560cbfbc30f6db90455e2e5cd588bbb1db701
text: Be more selective when selecting on focus-in

We don't want to select on focus-in when the focus
comes from a child. The case where this does harm
is when you activate copy or paste actions from the
context menu. We close the menu before triggering the
action, and if that causes the text in the entry to
be selected, unexpected things happen, since the action
applies to the current selection.

Fixes: #2869
gtk/gtktext.c